package com.cazor.dg.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.cazor.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cazor.common.core.domain.BaseEntity;

/**
 * 传感器数据传输记录对象 dg_param_data_sensor
 * 
 * @author cazor
 * @date 2023-11-27
 */
@TableName("dg_param_data_sensor")
public class DgParamDataSensor extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 流水号 */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 监测站id */
    @Excel(name = "监测站id")
    private String stationId;

    /** 设备id */
    @Excel(name = "设备id")
    private String deviceId;

    /** 传感器id */
    @Excel(name = "传感器id")
    private String sensorId;

    /** 源表最大id */
    @Excel(name = "源表最大id")
    private Long maxId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStationId(String stationId) 
    {
        this.stationId = stationId;
    }

    public String getStationId() 
    {
        return stationId;
    }
    public void setDeviceId(String deviceId) 
    {
        this.deviceId = deviceId;
    }

    public String getDeviceId() 
    {
        return deviceId;
    }
    public void setSensorId(String sensorId) 
    {
        this.sensorId = sensorId;
    }

    public String getSensorId() 
    {
        return sensorId;
    }
    public void setMaxId(Long maxId) 
    {
        this.maxId = maxId;
    }

    public Long getMaxId() 
    {
        return maxId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("stationId", getStationId())
            .append("deviceId", getDeviceId())
            .append("sensorId", getSensorId())
            .append("maxId", getMaxId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
